package day09.edu;

import org.junit.Test;

// Created: 09/09/2025, ChangJiang Ru
public class OverrideTest {
    @Test
    public void test()
    {
    Father f = new Son();
    f.method1();
    }

}

class Father
{
    public void method1()
    {
        System.out.println("I am father");
    }
}

class Son extends Father
{
    @Override
    public void method1()
    {
        System.out.println("I am son");
    }
}